@import './variables.scss';

body {
  // font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋";
}

footer {
  text-align: center;
  margin-top:10px;
}
::-webkit-scrollbar,::-webkit-scrollbar-thumb {
  background-color: #fff !important;
}

label {
  font-weight: 400;
}
.dialog-footer{
  text-align: center;
  margin-top: 10px;
}
.el-table td .cell{
  text-align: left !important;
}

.search {
  // margin-bottom: 18px;

  .el-form {
    .el-form-item {
      display: flex;
      flex-direction: row;
      margin-right: 30px;

      .el-form-item__content {
        flex: 1;

        .el-select {
          width: 100%;
        }
      }
    }
  }
}
.el-image-viewer__img{
  width: 50% !important;
  height: auto !important;
}
// .el-image-viewer__mask{
//   position: absolute;
//   width: 60%;
//   height: 60%;
//   top: 20%;
//   left: 20%;
//   opacity: .8;
// }
.el-image-viewer__close {
  top: 20%;
  right: 20%;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff !important;
}
.search .el-date-editor--daterange.el-input,
.search .el-date-editor--daterange.el-input__inner,
.search .el-date-editor--timerange.el-input,
.search .el-date-editor--timerange.el-input__inner {
  width: 100%;
}

.el-date-editor.el-input, .el-date-editor.el-input__inner {
  width: 100%;
}

.el-button {
  min-width: 80px;
}

.el-card__header {
  border: none;

  >div {
    display: flex;
    flex-direction: row;
    align-items: center;

    >span {
      font-size: 16px;
      font-weight: bold;
    }
  }
}

.el-card__body {
  height: 100%;

  >div {
    height: 100%;
    display: flex;
    flex-direction: column;

    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      .ct-btns {
        margin-bottom: 10px;
      }
      .ct-table {
        height: calc(100% - 46px);
      }

      .ct-table-only {
        height:100%;
      }
    }
  }
}

.ct-table,.ct-table-only {
  >div {
    height: 100%;
    padding-bottom: 40px;
    .el-table {
      overflow: initial !important;
    }
    .el-pagination {
      position: absolute;
      bottom: 0px;
      right: 20px;
    }
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
}

// 滚动条track 轨道
::-webkit-scrollbar-track {  
  border-radius: 4px; 
  background-color:#fff;    
}

//滚动条的滑块
::-webkit-scrollbar-thumb {
  background-color: #fff;
  border-radius: 4px;
}

.itemTitle {
  font-weight: 600;
  position: relative;
  line-height: 30px;
  margin-left: 18px;
  margin-bottom: 20px;
}

.itemTitle::after {
  content: "";
  position: absolute;
  top: 49%;
  transform: translateY(-50%);
  left: -17px;
  width: 5px;
  height: 20px;
  background-color: $baseBlueColor;
  overflow: hidden;
}

.title-level2 {
  padding-left: 20px;
  position: relative;
  font-size:14px;
  font-weight:bold;
  margin:0 0 10px 0;
  &:before {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: $baseBlueColor;
    content: '';
    left: 10px;
    transform: translate(-50%, -50%);
    top: 50%;
  }
}

.form-page{
  padding-right:100px;
}
.el-dialog .el-dialog__body{
  padding-right:60px;
} 

.el-select {
  width: 100%;
}

.el-form-item--medium .el-form-item__content {
  line-height: 34px;
}

.el-dialog__body {
  padding: 0px 20px;
  overflow: auto;
}

.page-edit {
  display: flex;
  flex-direction: column;
  height: 100%;

  .edit-body {
    flex: 1;
    overflow: auto;
    padding-right: 100px;
    display:flex;
    flex-direction: column;
  }

  header {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
  }
}

.el-dialog__header {
  span {
    &:before {
      content: "";
      position: absolute;
      top: 49%;
      transform: translateY(-50%);
      left: 0px;
      width: 5px;
      height: 20px;
      background-color: $baseBlueColor;
      overflow: hidden;
    }
  }
}

.el-dialog__title {
  position: relative;
  display: inline-block;
  padding-left: 10px;
  font-size: 16px;
  font-weight: bold;
}

.el-dialog__header {
  padding-bottom: 20px;
  background-color: #fff !important;
  .el-dialog__title{
    color: #303133 !important;
  }
}
.dialog-footer{
  text-align: center;
}

.file-preview{
  .el-dialog__body {
    padding: 0 40px 40px 40px;
    overflow: auto;
  }
}
.el-table{
  .cell{
    >div{
      .el-button{
        font-size:14px;
      }
    }
  }
}

.el-badge__content.is-fixed{
  top:3px;
  right:10px !important;
}

// .el-submenu .is-active .nest-menu{
//   &:hover{
//     background:rgba(41,98,184,0.14);
//   }
// }

// #app .sidebar-container .el-menu
#app .sidebar-container .el-submenu .is-active .nest-menu .el-menu-item,
#app .sidebar-container .el-menu .is-active .nest-menu .el-menu-item{
  &:hover{
    background:rgba(41,98,184,0.14);
  }
}

#app .sidebar-container .el-menu .router-link-active,
#app .sidebar-container .el-submenu .is-active .nest-menu .router-link-active,
#app .sidebar-container .el-menu .is-active .nest-menu .router-link-active{
  background:rgba(41,98,184,0.4) !important;
}
li:hover{
  background:transparent !important;
}

.el-menu--vertical{
  .el-menu{
     background-color: #fff !important;
     z-index:99999;
  }
}